<?php

namespace app\mini\controller\v1\client\validate;


use think\Validate;

class BillValidate extends Validate
{
    protected $rule = [
        'bill_title_id'      => 'require',
        'orders'      => 'require',
        'bill_id'      => 'require',

    ];

    protected $message = [
        'bill_title_id.require'      => '发票抬头ID必填',
        'orders.require'      => '订单号必填',
        'type.require'      => '抬头类型必选',
        'bill_id.require'      => '发票ID必填',

    ];

    protected $scene = [
        'confirm'  => ['bill_title_id','orders'],
        'detail'  => ['bill_id'],
    ];
}